<?= $this->partial('user/morelayout.phtml', array(
									'uid' => $this->uid, 
									'type' => $this->type,
									'myaction' => $this->myaction
									)
	); 
?>
<script>
if (window == top)top.location.href = "";
function checkform(){
	var core=trim($("textarea[name='core']").val());
	if(core.length<1||core.length>200){
		parent.showMsg('核心产品/服务不能为空并且最多200个字符!');
		return false;
	}
	var intro=trim($("textarea[name='intro']").val());
	if(intro.length<50||intro.length>4000){
		parent.showMsg('公司简介不能少于50个字符或者多于4000个字符!');
		return false;
	}
	var found_date=$("input[name='found_date']").val();
	if(found_date!=''&&!/^(1[\d]|20)\d{2}$/.test(found_date)){
		parent.showMsg('请正确填写公司成立年份!');
		return false;
	}
	commonEffection.setLoading();
	$('#userForm').submit();
}
$(document).ready(
	function(){
		$("select[name='employee_counts']").val('<?=$this->sellerArray[0]['employee_counts']?>');
		$("select[name='turnover']").val('<?=$this->sellerArray[0]['turnover']?>');
	}
);
</script>
<div class="frame_introDiv">
<form name="userForm" id="userForm" action="administrator-user-dointro" method="post">
  <table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#c8d9e9">
        <tr>
          <td width="27%" class="ri-bbgg"><span class="red">*</span> 公司员工数：</td>
          <td width="73%" class="le">
	          <select name="employee_counts" style="width:250">
	          	 	          	  <option value="1-4" >Less than 5 People</option>
	          	 	          	  <option value="5-10" >5 - 10 People</option>
	          	 	          	  <option value="11-50" >11 - 50 People</option>
	          	 	          	  <option value="51-100" >51 - 100 People</option>
	          	 	          	  <option value="101-500" >101 - 500 People</option>
								  <option value="500-1000" >500 - 1000 People</option>
								  <option value="1000-3000" >1000 - 3000 People</option>
	          	 	          	  <option value="3001-99999999" >Over 3000 People</option>
	          	 			 </select>
		  </td>
        </tr>
        <tr>
          <td valign="top" class="ri-bbgg"><span class="red">*</span> 核心产品/服务(最多200字符)： </td>
          <td class="le"><textarea name="core" cols="50" rows="4" ><?=$this->sellerArray[0]['core']?></textarea></td>
          </tr>
        <tr>
          <td valign="top" class="ri-bbgg"><span class="red">*</span> 公司简介(50-4000字符)：</td>
          <td class="le"><textarea name="intro" cols="50" rows="6"><?=$this->sellerArray[0]['intro']?></textarea><br />请详细、真实、正确填写有关您公司的产品、服务、历史、成就等信息. <br />不支持HTML格式.</td>
       </tr>
        <tr>
          <td class="ri-bbgg">年营业额：</td>
          <td class="le">
          <select name="turnover" style="width:250">
	         	          	  <option value="0-1" >Below US$1 Million</option>
	         	          	  <option value="1-2.5" >US$1 Million - US$2.5 Million</option>
	         	          	  <option value="2.5-5" >US$2.5 Million - US$5 Million</option>
							  <option value="5-10" >US$5 Million - US$10 Million</option>
							  <option value="10-50" >US$10 Million - US$50 Million</option>
	         	          	  <option value="50-100" >US$50 Million - US$100 Million</option>
							  <option value="100-300" >US$100 Million - US$300 Million</option>
	         	          	  <option value="300-9999999" >Above US$300 Million</option>
	         		</select>
		</td>
          </tr>
        <tr>
          <td class="ri-bbgg">公司成立年(例如:1952)：</td>
          <td class="le"><input type="text" name="found_date" value="<?=$this->sellerArray[0]['found_date']?>" id="found_date"></td>
        </tr>
		<tr>
          <td class="ri-bbgg">银行账户：</td>
          <td class="le">
		  	<div id="bankShow">
				<?foreach($this->bankArray as $value):?>
					<div>
						 <span><?=$value['bank_name']?></span>: 
						 <span><?=$value['bank_account']?></span>
					</div>
				<?endforeach;?>
			</div>
		  </td>
        </tr>
		<tr>
          <td class="ri-bbgg">认证信息：</td>
          <td class="le">
		  	<div>
				<div>营业执照：</div>
				<?if($this->sellerArray[0]['license_url']!=''):?>
				<div><a target="_blank" href="<?=$this->sellerArray[0]['license_url']?>"><img src="<?=$this->sellerArray[0]['license_url']?>" width="100" /></a></div>
				<?else:?>
				无
				<?endif;?>
				<br />
				<div>身份证正面：</div>
				<?if($this->sellerArray[0]['idcard_front_url']!=''):?>
				<div><a target="_blank" href="<?=$this->sellerArray[0]['idcard_front_url']?>"><img src="<?=$this->sellerArray[0]['idcard_front_url']?>" width="100" /></a></div>
				<?else:?>
				无
				<?endif;?>
				<br />
				<div>身份证背面：</div>
				<?if($this->sellerArray[0]['idcard_back_url']!=''):?>
				<div><a target="_blank" href="<?=$this->sellerArray[0]['idcard_back_url']?>"><img src="<?=$this->sellerArray[0]['idcard_back_url']?>" width="100" /></a></div>
				<?else:?>
				无
				<?endif;?>
			</div>
		  </td>
        </tr>
		<!--
        <tr>
          <td colspan="2" class="se" style="text-align:center"><span>
            <input  name="act" type="hidden" value="save" />
            <input name="button" type="button" onclick="checkform()" class="iput" value="保 存" />
          </span>
          <font color="#FF0000">    </font>
          </td>
        </tr>
		-->
      </table>
      </form>
</div>